package pages;

import core.TestBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import utils.Log4Test;
/**
 * Created by Nicktoris on 22.07.2014.
 */
public class TwoAppleBooksComparePage extends TestBase
{
    public String getPageTitleText()
    {
        Log4Test.info("Getting the head text of the page...");
        targetElement = webDriver.findElement(By.xpath(".//*[@id='head_banner_container']/div[3]/div/div/div[1]"));
        Log4Test.info("The head text of the page is - "+targetElement.getText().toString());
        return targetElement.getText().toString();

    }

    public WebElement getCompareBlock()
    {
        Log4Test.info("Getting the block which contains both notebooks for compare...");
        targetElement = webDriver.findElement(By.xpath("//*[@class='scroll']/table/thead"));
        Log4Test.info("The comparaison block was found.");
        return targetElement;
    }


}
